package com.test3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Admin on 9/17 0017.
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext con=new ClassPathXmlApplicationContext("test3.xml");
        Car car= (Car) con.getBean("car");
        System.out.println(car);

        Car car2= (Car) con.getBean("car2");
        System.out.println(car2);
    }
}
